package gui;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;

import entities.Student;

public class EmployeeKinInfoPanel extends JPanel {

	private static final long serialVersionUID = 1L;

	/**
	 * Construct a panel with the current information for the current student's
	 * parents
	 */
	public EmployeeKinInfoPanel(Student student) {
		setBorder(new TitledBorder(new EtchedBorder(), "Kin Information"));
		setLayout(new GridLayout(3, 1));

		JLabel fatherEducation = new JLabel("Father's Education: "
				+ student.getFatherEducation());
		add(fatherEducation);

		JLabel motherEducation = new JLabel("Mother's Education: "
				+ student.getMotherEducation());
		add(motherEducation);
	}
}
